<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Specification extends Model
{
    protected $fillable = ['title','name','sort'];
    public $timestamps = false;

    public function items(){
        return $this->hasMany(SpecificationItem::class);
    }

    public function categories()
    {
        return $this->belongsToMany(Category::class);
    }
}
